﻿using System.ComponentModel.DataAnnotations;

namespace AnQinFrameWorkAPI.Entity.BaseInfo.DTO.Staff;

/// <summary>
///     员工新增模型
/// </summary>
public class StaffAddDTO
{
    /// <summary>
    ///     员工编码
    /// </summary>
    [Required(ErrorMessage = "员工编码不可为空")]
    public string Code { get; set; }

    /// <summary>
    ///     员工名称
    /// </summary>
    [Required(ErrorMessage = "员工名称不可为空")]
    public string Name { get; set; }

    /// <summary>
    ///     员工账号
    /// </summary>
    [Required(ErrorMessage = "员工账号不可为空")]
    public string Account { get; set; }

    /// <summary>
    ///     员工密码
    /// </summary>
    [Required(ErrorMessage = "员工密码不可为空")]
    public string Password { get; set; }

    /// <summary>
    ///     员工角色
    /// </summary>
    public List<string>? RoleList { get; set; }

    /// <summary>
    ///     员工头像
    /// </summary>
    public string? HeadImage { get; set; }

    /// <summary>
    ///     部门id
    /// </summary>
    public Guid? DepartmentId { get; set; }
}